﻿<span id="login_state"></span>
<script type="text/javascript">
    jQuery.get("/user/status.aspx?r=" + new Date().getTime(), function (data) {
        jQuery('#login_state').html(data);
    });
</script>
<!--#*<script type="text/javascript">
    jQuery(function () {
        jQuery("#btnLogin").live("click", function () {
            var username = jQuery("#username").val();
            var userpwd = jQuery("#userpwd").val();
            jQuery.ajax({
                type: "get",
                url: "/tools/user_ajax.ashx?act=login&username=" + username + "&userpwd=" + userpwd + "&" + Math.random(),
                dataType: "json",
                success: function (data) {
                    if (data.msg == "1") {
                        window.location.href = data.url;
                    }
                    else {
                        alert(data.msgbox);
                    }
                },
                error: function (data, status, e) {
                    alert(e);
                }
            });
        });
    })
</script>
<input id="username" type="text" placeholder="请输入账户名" />
<input id="userpwd" type="password"	placeholder="请输入密码" />
<input type="button" id="btnLogin" />*#-->